package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.MemberClient;
import cn.wolfcode.crm.query.MemberQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberClientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MemberClient record);

    MemberClient selectByPrimaryKey(Long id);

    List<MemberClient> selectAll();

    int updateByPrimaryKey(MemberClient record);

    //高级查询
    List<MemberClient> query(MemberQueryObject qo);

    Integer count(MemberQueryObject qo);

    Long selectByCardNum(String cardNumber);

    void updateByCardNumber(@Param("cardNumber") String cardNumber,@Param("clientId")  Long id);

}